package com.mhwx.mhlive.presenter;

import android.app.Activity;
import android.content.Context;
import android.os.Handler;

import com.mhwx.mhlive.model.UserModel;
import com.mhwx.mhlive.model.UserModelImpl;
import com.mhwx.mhlive.ui.activity.MainActivity;
import com.mhwx.mhlive.util.IntoActivity;
import com.mhwx.mhlive.view.UserLoginView;


/**
 * <p>Title: cn.mvp.presenter</p>
 *
 * @author : Guol
 * @version 1.0
 * @time 2017/5/5
 * Description:
 */

public class UserLoginPresenter {
    private UserLoginView mUserLoginView;
    private UserModel mUserModel;
    private Context context;
    private Handler mHandler = new Handler();

    public UserLoginPresenter(UserLoginView userLoginView, Context context) {
        this.context=context;
        this.mUserLoginView = userLoginView;
        mUserModel = new UserModelImpl();
    }

    public void login() {
        mUserLoginView.showLoading();
        IntoActivity.toNextActivity(context, MainActivity.class);
        ((Activity)context).finish();
    }

    public void clear() {

    }
}
